import request from '@/utils/request'

// 查询系统配置列表
export function listDeploy(query) {
  return request({
    url: '/system/saas/deploy/list',
    method: 'get',
    params: query
  })
}

// 查询系统配置详细
export function getDeploy(configId) {
  return request({
    url: '/system/saas/deploy/' + configId,
    method: 'get'
  })
}

// 新增系统配置
export function addDeploy(data) {
  return request({
    url: '/system/saas/deploy',
    method: 'post',
    data: data
  })
}

// 修改系统配置
export function updateDeploy(data) {
  return request({
    url: '/system/saas/deploy',
    method: 'put',
    data: data
  })
}

// 删除系统配置
export function delDeploy(configId) {
  return request({
    url: '/system/saas/deploy/' + configId,
    method: 'delete'
  })
}

// 导出系统配置
export function exportDeploy(query) {
  return request({
    url: '/system/saas/deploy/export',
    method: 'get',
    params: query
  })
}

// 获取水印信息
export function getWatermark() {
  return request({
    url: '/system/saas/deploy/getWatermark',
    method: 'get'
  })
}
